package com.one.mapper;

import com.one.common.Result;
import com.one.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.io.Reader;
import java.util.List;
import java.util.Map;

/**
 * 用户 mapper 接口 增删改查
 */
@Mapper
public interface UserMapper {

    public void add(User user);

    public void deleteById(int id);

    public int select();

    public void updateById(User user);

    public List<User> limit(Map<String,Integer> map);

    public List<User> search(String name);

    public User login(String username);
}
